<script>
	
	export default {
		
		onLaunch: function() {
			// #ifdef APP
			if (plus.os.name == 'Android') {
			      plus.android.requestPermissions(
			         ['android.permission.ANSWER_PHONE_CALLS',//手动 挂断和接听 需要这个权限
			          "android.permission.MODIFY_AUDIO_SETTINGS",//手动 挂断和接听 需要这个权限
			          "android.permission.CALL_PHONE",//手动 挂断和接听 需要这个权限
			          "android.permission.READ_PHONE_STATE",//>监听电话状态 需要这个权限
			          "android.permission.READ_CALL_LOG",//获取号码需要这个权限
			          "android.permission.READ_AUDIO" // 录音权限
			          ],
			      function(resultObj) {
			          var result = 0;
			          for (var i = 0; i < resultObj.granted.length; i++) {
			          var grantedPermission = resultObj.granted[i];
			          console.log('已获取的权限：' + grantedPermission);
			          result = 1
			      }
			      for (var i = 0; i < resultObj.deniedPresent.length; i++) {
			          var deniedPresentPermission = resultObj.deniedPresent[i];
			          console.log('拒绝本次申请的权限：' + deniedPresentPermission);
			          result = 0
			      }
			      for (var i = 0; i < resultObj.deniedAlways.length; i++) {
			          var deniedAlwaysPermission = resultObj.deniedAlways[i];
			          console.log('永久拒绝申请的权限：' + deniedAlwaysPermission);
			          result = -1
			      }
			     },  function(error) {
			          console.log('申请权限错误：' + error.code + " = " + error.message);
			     } );
			}
			// #endif
			
			uni.hideTabBar()
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')

		},

	}
</script>

<style lang="scss">
	/* 注意要写在第一行，同时给style标签加入lang="scss"属性 */
	@import "@/uni_modules/uview-ui/index.scss";

	@font-face {
		font-family: 'DIN Next LT Pro';
		src: url('@/static/DINNextLTPro-Bold.ttf');
		font-weight: normal;
		font-style: normal;
		font-display: swap;
	}

	@keyframes progross1 {
		to {
			transform: rotate(360deg);
		}
	}

	@keyframes progross2 {
		to {
			transform: rotate(0deg);
		}
	}

	.con {
		position: relative;
	}

	.scbox {
		height: calc(100vh - var(--status-bar-height) - 44px);
	}
</style>